Skip to main content

createEip

Description

Create eip.

Request Method

POST

Request Path

/customer/eip/create

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
chargingMethodBODYstringYesNo sample value for this parameter.charging method. PayByBandwidth or PayByTraffic
periodBODYintegerYesNo sample value for this parameter.period
costBODYnumberYesNo sample value for this parameter.amount
quantityBODYintegerYesNo sample value for this parameter.quantity
bandwidthBODYstringYesNo sample value for this parameter.bandwidth. the range is from 1 to 5120MB.
instanceNameBODYstringYesNo sample value for this parameter.instance name
billingMethodBODYstringYesNo sample value for this parameter.billing method. Subscription or PayAsYouGo
voucherInstanceIdBODYstringYesNo sample value for this parameter.voucher instance id
couponInstanceIdBODYstringYesNo sample value for this parameter.coupon instance id
autoRenewalFlagBODYbooleanYesNo sample value for this parameter.auto renew flag
regionIdBODYstringYesNo sample value for this parameter.region id
lineTypeBODYstringYesNo sample value for this parameter.line type. eg:BGP
pricingCycleBODYstringYesNo sample value for this parameter.cycle. Month or Year
networkTypeBODYstringYesNo sample value for this parameter.network type

Return data

NameTypeSample valueDescription
resultobject`{"orders":[{"instanceId":"d681268a-3489-4c61-a115-d1629e8edea7","orderId":2.0220727154128E+18}]}`result
resultCodestring0result code
resultMsgstringsuccessresult message

Example

Successful Response example

{
"result":
{
"orders":
[
{
"instanceId":"d681268a-3489-4c61-a115-d1629e8edea7",
"orderId":2.0220727154128E+18
}

]

},
"resultCode":"0",
"resultMsg":"success"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}